/**
 * dev index
 * @author fanxueliang
 */

import table from './spec/table.json';

import {createApp} from 'vue';
import {SpecEditor} from '../src/index';

createApp(SpecEditor, {
    spec: table,
    modelValue: [
        {
            path: 'tableData',
            spec: {
                displayName: '表格数据test'
            }
        },
        {
            path: 'tableData[*].rowData[*].content',
            spec: {
                display: 'toggle-block',
                displayName: '单元格内容1',
                defaultValue: '水豆腐'
            }
        },
        {
            path: 'columns',
            spec: {
                needFilled: false
            }
        }
    ]
}).mount('#app');
